from selenium.webdriver.common.by import By
from Base import Base
import time
class Page1(Base):
    sy=(By.XPATH,'//a[@href="/"]')
    picture=(By.XPATH,'//img[@src="/uploads/images/20251024/1064a23279580b1a3c3ab8254c067f16.png"]')
    add=(By.ID,'add-cart')
    car=(By.CLASS_NAME,'nav-settcart')
    def click_sy(self):
        self.click(self.sy)
        time.sleep(5)
    def click_picture(self):
        time.sleep(3)
        self.click(self.picture)
        time.sleep(3)
    def click_add(self):
        self.click(self.add)
        time.sleep(3)
    def click_car(self):
        self.click(self.car)
        time.sleep(3)
    def test_addcar(self):
        self.click_sy()
        self.click_picture()
        self.click_add()
        self.click_car()